public enum LoRAMapping {
}

extension LoRAMapping {
  public static let CLIPTextModel: [Int: Int] = {
    var textModelMapping = [Int: Int]()
    for i in 0..<12 {
      textModelMapping[i * 6] = i * 8 + 3
      textModelMapping[i * 6 + 1] = i * 8 + 4
      textModelMapping[i * 6 + 2] = i * 8 + 5
      textModelMapping[i * 6 + 3] = i * 8 + 6
      textModelMapping[i * 6 + 4] = i * 8 + 8
      textModelMapping[i * 6 + 5] = i * 8 + 9
    }
    return textModelMapping
  }()
  public static let OpenCLIPTextModel: [Int: Int] = {
    var textModelMapping = [Int: Int]()
    for i in 0..<23 {
      textModelMapping[i * 6] = i * 8 + 3
      textModelMapping[i * 6 + 1] = i * 8 + 4
      textModelMapping[i * 6 + 2] = i * 8 + 5
      textModelMapping[i * 6 + 3] = i * 8 + 6
      textModelMapping[i * 6 + 4] = i * 8 + 8
      textModelMapping[i * 6 + 5] = i * 8 + 9
    }
    return textModelMapping
  }()
  public static let OpenCLIPTextModelG: [Int: Int] = {
    var textModelMapping = [Int: Int]()
    for i in 0..<32 {
      textModelMapping[i * 6] = i * 8 + 3
      textModelMapping[i * 6 + 1] = i * 8 + 4
      textModelMapping[i * 6 + 2] = i * 8 + 5
      textModelMapping[i * 6 + 3] = i * 8 + 6
      textModelMapping[i * 6 + 4] = i * 8 + 8
      textModelMapping[i * 6 + 5] = i * 8 + 9
    }
    return textModelMapping
  }()
}

extension LoRAMapping {
  public static let SDUNet: [Int: Int] = [
    0: 0,
    1: 1,
    2: 2,
    4: 5,
    3: 4,
    5: 7,
    6: 9,
    8: 12,
    7: 11,
    9: 13,
    10: 14,
    12: 17,
    11: 16,
    13: 18,
    14: 19,
    16: 22,
    15: 21,
    17: 23,
    18: 24,
    20: 27,
    19: 26,
    21: 29,
    22: 31,
    24: 34,
    23: 33,
    25: 35,
    26: 36,
    28: 39,
    27: 38,
    29: 40,
    30: 41,
    32: 44,
    31: 43,
    33: 45,
    34: 46,
    35: 47,
    37: 50,
    36: 49,
    38: 52,
    39: 53,
    40: 55,
    42: 58,
    41: 57,
    43: 59,
    44: 60,
    46: 63,
    45: 62,
    47: 64,
    48: 65,
    50: 68,
    49: 67,
    51: 69,
    52: 70,
    54: 73,
    53: 72,
    55: 75,
    56: 77,
    58: 80,
    57: 79,
    59: 81,
    60: 82,
    62: 85,
    61: 84,
    63: 86,
    64: 87,
    66: 90,
    65: 89,
    67: 91,
    68: 92,
    69: 93,
    71: 96,
    70: 95,
    72: 98,
    73: 99,
    74: 101,
    76: 104,
    75: 103,
    77: 105,
    78: 106,
    80: 109,
    79: 108,
    81: 110,
    82: 111,
    84: 114,
    83: 113,
    85: 115,
    86: 116,
    88: 119,
    87: 118,
    89: 121,
    90: 123,
    92: 126,
    91: 125,
    93: 127,
    94: 128,
    96: 131,
    95: 130,
    97: 132,
    98: 133,
    100: 136,
    99: 135,
    101: 137,
    102: 138,
    103: 139,
    105: 142,
    104: 141,
    106: 144,
    108: 147,
    107: 146,
    109: 149,
    111: 152,
    110: 151,
    112: 154,
    113: 156,
    115: 159,
    114: 158,
    116: 160,
    117: 161,
    119: 164,
    118: 163,
    120: 165,
    121: 166,
    123: 169,
    122: 168,
    124: 170,
    125: 171,
    127: 174,
    126: 173,
    128: 176,
    130: 179,
    129: 178,
    131: 181,
    132: 182,
    134: 185,
    133: 184,
    135: 187,
    136: 188,
    138: 191,
    137: 190,
    139: 193,
    140: 194,
    141: 195,
    143: 198,
    142: 197,
    144: 200,
    145: 201,
    146: 203,
    148: 206,
    147: 205,
    149: 207,
    150: 208,
    152: 211,
    151: 210,
    153: 212,
    154: 213,
    156: 216,
    155: 215,
    157: 217,
    158: 218,
    160: 221,
    159: 220,
    161: 223,
    162: 224,
    163: 226,
    165: 229,
    164: 228,
    166: 230,
    167: 231,
    169: 234,
    168: 233,
    170: 235,
    171: 236,
    173: 239,
    172: 238,
    174: 240,
    175: 241,
    177: 244,
    176: 243,
    178: 246,
    179: 247,
    180: 249,
    182: 252,
    181: 251,
    183: 253,
    184: 254,
    186: 257,
    185: 256,
    187: 258,
    188: 259,
    190: 262,
    189: 261,
    191: 263,
    192: 264,
    193: 265,
    195: 268,
    194: 267,
    196: 270,
    197: 271,
    198: 273,
    200: 276,
    199: 275,
    201: 277,
    202: 278,
    204: 281,
    203: 280,
    205: 282,
    206: 283,
    208: 286,
    207: 285,
    209: 287,
    210: 288,
    212: 291,
    211: 290,
    213: 293,
    214: 294,
    215: 296,
    217: 299,
    216: 298,
    218: 300,
    219: 301,
    221: 304,
    220: 303,
    222: 305,
    223: 306,
    225: 309,
    224: 308,
    226: 310,
    227: 311,
    229: 314,
    228: 313,
    230: 316,
    231: 317,
    232: 319,
    234: 322,
    233: 321,
    235: 323,
    236: 324,
    238: 327,
    237: 326,
    239: 328,
    240: 329,
    242: 332,
    241: 331,
    243: 333,
    244: 334,
    245: 335,
    247: 338,
    246: 337,
    248: 340,
    249: 341,
    250: 343,
    252: 346,
    251: 345,
    253: 347,
    254: 348,
    256: 351,
    255: 350,
    257: 352,
    258: 353,
    260: 356,
    259: 355,
    261: 357,
    262: 358,
    264: 361,
    263: 360,
    265: 363,
    266: 364,
    267: 366,
    269: 369,
    268: 368,
    270: 370,
    271: 371,
    273: 374,
    272: 373,
    274: 375,
    275: 376,
    277: 379,
    276: 378,
    278: 380,
    279: 381,
    281: 384,
    280: 383,
    282: 386,
    283: 387,
    284: 389,
    286: 392,
    285: 391,
    287: 393,
    288: 394,
    290: 397,
    289: 396,
    291: 398,
    292: 399,
    294: 402,
    293: 401,
    295: 403,
    296: 404,
    297: 406,
  ]
}

extension LoRAMapping {
  public static let SDUNetXLBase: [Int: Int] = [
    2: 2,
    3: 3,
    0: 0,
    1: 1,
    4: 4,
    6: 7,
    5: 6,
    7: 9,
    9: 12,
    8: 11,
    10: 14,
    11: 15,
    13: 18,
    12: 17,
    14: 20,
    15: 21,
    16: 23,
    18: 26,
    17: 25,
    19: 27,
    20: 28,
    21: 30,
    22: 31,
    24: 34,
    23: 33,
    25: 35,
    27: 38,
    26: 37,
    28: 39,
    29: 40,
    30: 42,
    31: 43,
    33: 46,
    32: 45,
    34: 47,
    35: 48,
    37: 51,
    36: 50,
    38: 53,
    39: 55,
    41: 58,
    40: 57,
    42: 59,
    43: 60,
    44: 62,
    45: 63,
    47: 66,
    46: 65,
    48: 67,
    50: 70,
    49: 69,
    51: 71,
    52: 72,
    53: 74,
    54: 75,
    56: 78,
    55: 77,
    57: 79,
    58: 80,
    59: 81,
    61: 84,
    60: 83,
    62: 86,
    63: 87,
    64: 89,
    66: 92,
    65: 91,
    67: 93,
    68: 94,
    69: 96,
    70: 97,
    72: 100,
    71: 99,
    73: 101,
    75: 104,
    74: 103,
    76: 105,
    77: 106,
    78: 108,
    79: 109,
    81: 112,
    80: 111,
    82: 113,
    84: 116,
    83: 115,
    85: 117,
    86: 118,
    87: 120,
    88: 121,
    90: 124,
    89: 123,
    91: 125,
    93: 128,
    92: 127,
    94: 129,
    95: 130,
    96: 132,
    97: 133,
    99: 136,
    98: 135,
    100: 137,
    102: 140,
    101: 139,
    103: 141,
    104: 142,
    105: 144,
    106: 145,
    108: 148,
    107: 147,
    109: 149,
    111: 152,
    110: 151,
    112: 153,
    113: 154,
    114: 156,
    115: 157,
    117: 160,
    116: 159,
    118: 161,
    120: 164,
    119: 163,
    121: 165,
    122: 166,
    123: 168,
    124: 169,
    126: 172,
    125: 171,
    127: 173,
    129: 176,
    128: 175,
    130: 177,
    131: 178,
    132: 180,
    133: 181,
    135: 184,
    134: 183,
    136: 185,
    138: 188,
    137: 187,
    139: 189,
    140: 190,
    141: 192,
    142: 193,
    144: 196,
    143: 195,
    145: 197,
    147: 200,
    146: 199,
    148: 201,
    149: 202,
    150: 204,
    151: 205,
    153: 208,
    152: 207,
    154: 209,
    155: 210,
    157: 213,
    156: 212,
    158: 215,
    159: 217,
    161: 220,
    160: 219,
    162: 221,
    163: 222,
    164: 224,
    165: 225,
    167: 228,
    166: 227,
    168: 229,
    170: 232,
    169: 231,
    171: 233,
    172: 234,
    173: 236,
    174: 237,
    176: 240,
    175: 239,
    177: 241,
    179: 244,
    178: 243,
    180: 245,
    181: 246,
    182: 248,
    183: 249,
    185: 252,
    184: 251,
    186: 253,
    188: 256,
    187: 255,
    189: 257,
    190: 258,
    191: 260,
    192: 261,
    194: 264,
    193: 263,
    195: 265,
    197: 268,
    196: 267,
    198: 269,
    199: 270,
    200: 272,
    201: 273,
    203: 276,
    202: 275,
    204: 277,
    206: 280,
    205: 279,
    207: 281,
    208: 282,
    209: 284,
    210: 285,
    212: 288,
    211: 287,
    213: 289,
    215: 292,
    214: 291,
    216: 293,
    217: 294,
    218: 296,
    219: 297,
    221: 300,
    220: 299,
    222: 301,
    224: 304,
    223: 303,
    225: 305,
    226: 306,
    227: 308,
    228: 309,
    230: 312,
    229: 311,
    231: 313,
    233: 316,
    232: 315,
    234: 317,
    235: 318,
    236: 320,
    237: 321,
    239: 324,
    238: 323,
    240: 325,
    242: 328,
    241: 327,
    243: 329,
    244: 330,
    245: 332,
    246: 333,
    248: 336,
    247: 335,
    249: 337,
    250: 338,
    252: 341,
    251: 340,
    253: 343,
    254: 345,
    256: 348,
    255: 347,
    257: 349,
    258: 350,
    259: 352,
    260: 353,
    262: 356,
    261: 355,
    263: 357,
    265: 360,
    264: 359,
    266: 361,
    267: 362,
    268: 364,
    269: 365,
    271: 368,
    270: 367,
    272: 369,
    274: 372,
    273: 371,
    275: 373,
    276: 374,
    277: 376,
    278: 377,
    280: 380,
    279: 379,
    281: 381,
    283: 384,
    282: 383,
    284: 385,
    285: 386,
    286: 388,
    287: 389,
    289: 392,
    288: 391,
    290: 393,
    292: 396,
    291: 395,
    293: 397,
    294: 398,
    295: 400,
    296: 401,
    298: 404,
    297: 403,
    299: 405,
    301: 408,
    300: 407,
    302: 409,
    303: 410,
    304: 412,
    305: 413,
    307: 416,
    306: 415,
    308: 417,
    310: 420,
    309: 419,
    311: 421,
    312: 422,
    313: 424,
    314: 425,
    316: 428,
    315: 427,
    317: 429,
    319: 432,
    318: 431,
    320: 433,
    321: 434,
    322: 436,
    323: 437,
    325: 440,
    324: 439,
    326: 441,
    328: 444,
    327: 443,
    329: 445,
    330: 446,
    331: 448,
    332: 449,
    334: 452,
    333: 451,
    335: 453,
    337: 456,
    336: 455,
    338: 457,
    339: 458,
    340: 460,
    341: 461,
    343: 464,
    342: 463,
    344: 465,
    345: 466,
    347: 469,
    346: 468,
    348: 471,
    350: 474,
    349: 473,
    351: 476,
    352: 477,
    353: 479,
    355: 482,
    354: 481,
    356: 483,
    357: 484,
    358: 486,
    359: 487,
    361: 490,
    360: 489,
    362: 491,
    364: 494,
    363: 493,
    365: 495,
    366: 496,
    367: 498,
    368: 499,
    370: 502,
    369: 501,
    371: 503,
    373: 506,
    372: 505,
    374: 507,
    375: 508,
    376: 510,
    377: 511,
    379: 514,
    378: 513,
    380: 515,
    382: 518,
    381: 517,
    383: 519,
    384: 520,
    385: 522,
    386: 523,
    388: 526,
    387: 525,
    389: 527,
    391: 530,
    390: 529,
    392: 531,
    393: 532,
    394: 534,
    395: 535,
    397: 538,
    396: 537,
    398: 539,
    400: 542,
    399: 541,
    401: 543,
    402: 544,
    403: 546,
    404: 547,
    406: 550,
    405: 549,
    407: 551,
    409: 554,
    408: 553,
    410: 555,
    411: 556,
    412: 558,
    413: 559,
    415: 562,
    414: 561,
    416: 563,
    418: 566,
    417: 565,
    419: 567,
    420: 568,
    421: 570,
    422: 571,
    424: 574,
    423: 573,
    425: 575,
    427: 578,
    426: 577,
    428: 579,
    429: 580,
    430: 582,
    431: 583,
    433: 586,
    432: 585,
    434: 587,
    436: 590,
    435: 589,
    437: 591,
    438: 592,
    439: 594,
    440: 595,
    442: 598,
    441: 597,
    443: 599,
    444: 600,
    446: 603,
    445: 602,
    447: 605,
    448: 606,
    449: 608,
    451: 611,
    450: 610,
    452: 612,
    453: 613,
    454: 615,
    455: 616,
    457: 619,
    456: 618,
    458: 620,
    460: 623,
    459: 622,
    461: 624,
    462: 625,
    463: 627,
    464: 628,
    466: 631,
    465: 630,
    467: 632,
    469: 635,
    468: 634,
    470: 636,
    471: 637,
    472: 639,
    473: 640,
    475: 643,
    474: 642,
    476: 644,
    478: 647,
    477: 646,
    479: 648,
    480: 649,
    481: 651,
    482: 652,
    484: 655,
    483: 654,
    485: 656,
    487: 659,
    486: 658,
    488: 660,
    489: 661,
    490: 663,
    491: 664,
    493: 667,
    492: 666,
    494: 668,
    496: 671,
    495: 670,
    497: 672,
    498: 673,
    499: 675,
    500: 676,
    502: 679,
    501: 678,
    503: 680,
    505: 683,
    504: 682,
    506: 684,
    507: 685,
    508: 687,
    509: 688,
    511: 691,
    510: 690,
    512: 692,
    514: 695,
    513: 694,
    515: 696,
    516: 697,
    517: 699,
    518: 700,
    520: 703,
    519: 702,
    521: 704,
    523: 707,
    522: 706,
    524: 708,
    525: 709,
    526: 711,
    527: 712,
    529: 715,
    528: 714,
    530: 716,
    532: 719,
    531: 718,
    533: 720,
    534: 721,
    535: 723,
    536: 724,
    538: 727,
    537: 726,
    539: 728,
    540: 729,
    542: 732,
    541: 731,
    543: 734,
    544: 735,
    545: 737,
    547: 740,
    546: 739,
    548: 741,
    549: 742,
    550: 744,
    551: 745,
    553: 748,
    552: 747,
    554: 749,
    556: 752,
    555: 751,
    557: 753,
    558: 754,
    559: 756,
    560: 757,
    562: 760,
    561: 759,
    563: 761,
    565: 764,
    564: 763,
    566: 765,
    567: 766,
    568: 768,
    569: 769,
    571: 772,
    570: 771,
    572: 773,
    574: 776,
    573: 775,
    575: 777,
    576: 778,
    577: 780,
    578: 781,
    580: 784,
    579: 783,
    581: 785,
    583: 788,
    582: 787,
    584: 789,
    585: 790,
    586: 792,
    587: 793,
    589: 796,
    588: 795,
    590: 797,
    592: 800,
    591: 799,
    593: 801,
    594: 802,
    595: 804,
    596: 805,
    598: 808,
    597: 807,
    599: 809,
    601: 812,
    600: 811,
    602: 813,
    603: 814,
    604: 816,
    605: 817,
    607: 820,
    606: 819,
    608: 821,
    610: 824,
    609: 823,
    611: 825,
    612: 826,
    613: 828,
    614: 829,
    616: 832,
    615: 831,
    617: 833,
    619: 836,
    618: 835,
    620: 837,
    621: 838,
    622: 840,
    623: 841,
    625: 844,
    624: 843,
    626: 845,
    628: 848,
    627: 847,
    629: 849,
    630: 850,
    631: 852,
    632: 853,
    634: 856,
    633: 855,
    635: 857,
    636: 858,
    637: 859,
    639: 862,
    638: 861,
    640: 864,
    641: 865,
    642: 867,
    644: 870,
    643: 869,
    645: 871,
    646: 872,
    647: 874,
    648: 875,
    650: 878,
    649: 877,
    651: 879,
    653: 882,
    652: 881,
    654: 883,
    655: 884,
    656: 886,
    657: 887,
    659: 890,
    658: 889,
    660: 891,
    661: 892,
    663: 895,
    662: 894,
    664: 897,
    665: 898,
    666: 900,
    668: 903,
    667: 902,
    669: 904,
    670: 905,
    671: 907,
    672: 908,
    674: 911,
    673: 910,
    675: 912,
    677: 915,
    676: 914,
    678: 916,
    679: 917,
    680: 919,
    681: 920,
    683: 923,
    682: 922,
    684: 924,
    685: 925,
    687: 928,
    686: 927,
    688: 930,
    689: 931,
    690: 933,
    692: 936,
    691: 935,
    693: 937,
    694: 938,
    695: 940,
    696: 941,
    698: 944,
    697: 943,
    699: 945,
    701: 948,
    700: 947,
    702: 949,
    703: 950,
    704: 952,
    705: 953,
    707: 956,
    706: 955,
    708: 957,
    709: 958,
    710: 959,
    712: 962,
    711: 961,
    713: 964,
    714: 965,
    716: 968,
    715: 967,
    717: 970,
    718: 971,
    720: 974,
    719: 973,
    721: 976,
    722: 977,
    723: 979,
  ]
}

extension LoRAMapping {
  public static let SDUNetXLRefiner: [Int: Int] = [
    2: 2,
    3: 3,
    0: 0,
    1: 1,
    4: 4,
    6: 7,
    5: 6,
    7: 9,
    9: 12,
    8: 11,
    10: 14,
    11: 15,
    13: 18,
    12: 17,
    14: 20,
    15: 21,
    16: 23,
    18: 26,
    17: 25,
    19: 27,
    20: 28,
    21: 30,
    22: 31,
    24: 34,
    23: 33,
    25: 35,
    27: 38,
    26: 37,
    28: 39,
    29: 40,
    30: 42,
    31: 43,
    33: 46,
    32: 45,
    34: 47,
    36: 50,
    35: 49,
    37: 51,
    38: 52,
    39: 54,
    40: 55,
    42: 58,
    41: 57,
    43: 59,
    45: 62,
    44: 61,
    46: 63,
    47: 64,
    48: 66,
    49: 67,
    51: 70,
    50: 69,
    52: 71,
    53: 72,
    55: 75,
    54: 74,
    56: 77,
    57: 79,
    59: 82,
    58: 81,
    60: 83,
    61: 84,
    62: 86,
    63: 87,
    65: 90,
    64: 89,
    66: 91,
    68: 94,
    67: 93,
    69: 95,
    70: 96,
    71: 98,
    72: 99,
    74: 102,
    73: 101,
    75: 103,
    77: 106,
    76: 105,
    78: 107,
    79: 108,
    80: 110,
    81: 111,
    83: 114,
    82: 113,
    84: 115,
    86: 118,
    85: 117,
    87: 119,
    88: 120,
    89: 122,
    90: 123,
    92: 126,
    91: 125,
    93: 127,
    94: 128,
    95: 129,
    97: 132,
    96: 131,
    98: 134,
    99: 135,
    100: 137,
    102: 140,
    101: 139,
    103: 141,
    104: 142,
    105: 144,
    106: 145,
    108: 148,
    107: 147,
    109: 149,
    111: 152,
    110: 151,
    112: 153,
    113: 154,
    114: 156,
    115: 157,
    117: 160,
    116: 159,
    118: 161,
    120: 164,
    119: 163,
    121: 165,
    122: 166,
    123: 168,
    124: 169,
    126: 172,
    125: 171,
    127: 173,
    129: 176,
    128: 175,
    130: 177,
    131: 178,
    132: 180,
    133: 181,
    135: 184,
    134: 183,
    136: 185,
    137: 186,
    139: 189,
    138: 188,
    140: 191,
    141: 193,
    143: 196,
    142: 195,
    144: 197,
    145: 198,
    146: 200,
    147: 201,
    149: 204,
    148: 203,
    150: 205,
    152: 208,
    151: 207,
    153: 209,
    154: 210,
    155: 212,
    156: 213,
    158: 216,
    157: 215,
    159: 217,
    161: 220,
    160: 219,
    162: 221,
    163: 222,
    164: 224,
    165: 225,
    167: 228,
    166: 227,
    168: 229,
    170: 232,
    169: 231,
    171: 233,
    172: 234,
    173: 236,
    174: 237,
    176: 240,
    175: 239,
    177: 241,
    178: 242,
    179: 243,
    181: 246,
    180: 245,
    182: 248,
    184: 251,
    183: 250,
    185: 253,
    187: 256,
    186: 255,
    188: 258,
    189: 260,
    191: 263,
    190: 262,
    192: 264,
    193: 265,
    194: 267,
    195: 268,
    197: 271,
    196: 270,
    198: 272,
    200: 275,
    199: 274,
    201: 276,
    202: 277,
    203: 279,
    204: 280,
    206: 283,
    205: 282,
    207: 284,
    209: 287,
    208: 286,
    210: 288,
    211: 289,
    212: 291,
    213: 292,
    215: 295,
    214: 294,
    216: 296,
    218: 299,
    217: 298,
    219: 300,
    220: 301,
    221: 303,
    222: 304,
    224: 307,
    223: 306,
    225: 308,
    226: 309,
    228: 312,
    227: 311,
    229: 314,
    231: 317,
    230: 316,
    232: 319,
    233: 320,
    235: 323,
    234: 322,
    236: 325,
    237: 326,
    239: 329,
    238: 328,
    240: 331,
    241: 332,
    242: 333,
    244: 336,
    243: 335,
    245: 338,
    246: 339,
    247: 341,
    249: 344,
    248: 343,
    250: 345,
    251: 346,
    252: 348,
    253: 349,
    255: 352,
    254: 351,
    256: 353,
    258: 356,
    257: 355,
    259: 357,
    260: 358,
    261: 360,
    262: 361,
    264: 364,
    263: 363,
    265: 365,
    267: 368,
    266: 367,
    268: 369,
    269: 370,
    270: 372,
    271: 373,
    273: 376,
    272: 375,
    274: 377,
    276: 380,
    275: 379,
    277: 381,
    278: 382,
    279: 384,
    280: 385,
    282: 388,
    281: 387,
    283: 389,
    284: 390,
    286: 393,
    285: 392,
    287: 395,
    288: 396,
    289: 398,
    291: 401,
    290: 400,
    292: 402,
    293: 403,
    294: 405,
    295: 406,
    297: 409,
    296: 408,
    298: 410,
    300: 413,
    299: 412,
    301: 414,
    302: 415,
    303: 417,
    304: 418,
    306: 421,
    305: 420,
    307: 422,
    309: 425,
    308: 424,
    310: 426,
    311: 427,
    312: 429,
    313: 430,
    315: 433,
    314: 432,
    316: 434,
    318: 437,
    317: 436,
    319: 438,
    320: 439,
    321: 441,
    322: 442,
    324: 445,
    323: 444,
    325: 446,
    326: 447,
    328: 450,
    327: 449,
    329: 452,
    330: 453,
    331: 455,
    333: 458,
    332: 457,
    334: 459,
    335: 460,
    336: 462,
    337: 463,
    339: 466,
    338: 465,
    340: 467,
    342: 470,
    341: 469,
    343: 471,
    344: 472,
    345: 474,
    346: 475,
    348: 478,
    347: 477,
    349: 479,
    351: 482,
    350: 481,
    352: 483,
    353: 484,
    354: 486,
    355: 487,
    357: 490,
    356: 489,
    358: 491,
    360: 494,
    359: 493,
    361: 495,
    362: 496,
    363: 498,
    364: 499,
    366: 502,
    365: 501,
    367: 503,
    368: 504,
    369: 505,
    371: 508,
    370: 507,
    372: 510,
    373: 511,
    374: 513,
    376: 516,
    375: 515,
    377: 517,
    378: 518,
    379: 520,
    380: 521,
    382: 524,
    381: 523,
    383: 525,
    385: 528,
    384: 527,
    386: 529,
    387: 530,
    388: 532,
    389: 533,
    391: 536,
    390: 535,
    392: 537,
    394: 540,
    393: 539,
    395: 541,
    396: 542,
    397: 544,
    398: 545,
    400: 548,
    399: 547,
    401: 549,
    403: 552,
    402: 551,
    404: 553,
    405: 554,
    406: 556,
    407: 557,
    409: 560,
    408: 559,
    410: 561,
    411: 562,
    413: 565,
    412: 564,
    414: 567,
    415: 568,
    416: 570,
    418: 573,
    417: 572,
    419: 574,
    420: 575,
    421: 577,
    422: 578,
    424: 581,
    423: 580,
    425: 582,
    427: 585,
    426: 584,
    428: 586,
    429: 587,
    430: 589,
    431: 590,
    433: 593,
    432: 592,
    434: 594,
    436: 597,
    435: 596,
    437: 598,
    438: 599,
    439: 601,
    440: 602,
    442: 605,
    441: 604,
    443: 606,
    445: 609,
    444: 608,
    446: 610,
    447: 611,
    448: 613,
    449: 614,
    451: 617,
    450: 616,
    452: 618,
    453: 619,
    455: 622,
    454: 621,
    456: 624,
    457: 625,
    458: 627,
    460: 630,
    459: 629,
    461: 631,
    462: 632,
    463: 634,
    464: 635,
    466: 638,
    465: 637,
    467: 639,
    469: 642,
    468: 641,
    470: 643,
    471: 644,
    472: 646,
    473: 647,
    475: 650,
    474: 649,
    476: 651,
    478: 654,
    477: 653,
    479: 655,
    480: 656,
    481: 658,
    482: 659,
    484: 662,
    483: 661,
    485: 663,
    487: 666,
    486: 665,
    488: 667,
    489: 668,
    490: 670,
    491: 671,
    493: 674,
    492: 673,
    494: 675,
    495: 676,
    496: 677,
    498: 680,
    497: 679,
    499: 682,
    500: 683,
    502: 686,
    501: 685,
    503: 688,
    504: 689,
    506: 692,
    505: 691,
    507: 694,
    508: 695,
    509: 697,
  ]
}

extension LoRAMapping {
  public static let SDUNetXLSSD1B: [Int: Int] = [
    2: 2,
    3: 3,
    0: 0,
    1: 1,
    4: 4,
    6: 7,
    5: 6,
    7: 9,
    9: 12,
    8: 11,
    10: 14,
    11: 15,
    13: 18,
    12: 17,
    14: 20,
    15: 21,
    16: 23,
    18: 26,
    17: 25,
    19: 27,
    20: 28,
    21: 30,
    22: 31,
    24: 34,
    23: 33,
    25: 35,
    27: 38,
    26: 37,
    28: 39,
    29: 40,
    30: 42,
    31: 43,
    33: 46,
    32: 45,
    34: 47,
    35: 48,
    37: 51,
    36: 50,
    38: 53,
    39: 55,
    41: 58,
    40: 57,
    42: 59,
    43: 60,
    44: 62,
    45: 63,
    47: 66,
    46: 65,
    48: 67,
    50: 70,
    49: 69,
    51: 71,
    52: 72,
    53: 74,
    54: 75,
    56: 78,
    55: 77,
    57: 79,
    58: 80,
    59: 81,
    61: 84,
    60: 83,
    62: 86,
    63: 87,
    64: 89,
    66: 92,
    65: 91,
    67: 93,
    68: 94,
    69: 96,
    70: 97,
    72: 100,
    71: 99,
    73: 101,
    75: 104,
    74: 103,
    76: 105,
    77: 106,
    78: 108,
    79: 109,
    81: 112,
    80: 111,
    82: 113,
    84: 116,
    83: 115,
    85: 117,
    86: 118,
    87: 120,
    88: 121,
    90: 124,
    89: 123,
    91: 125,
    93: 128,
    92: 127,
    94: 129,
    95: 130,
    96: 132,
    97: 133,
    99: 136,
    98: 135,
    100: 137,
    101: 138,
    103: 141,
    102: 140,
    104: 143,
    105: 145,
    107: 148,
    106: 147,
    108: 149,
    109: 150,
    110: 152,
    111: 153,
    113: 156,
    112: 155,
    114: 157,
    116: 160,
    115: 159,
    117: 161,
    118: 162,
    119: 164,
    120: 165,
    122: 168,
    121: 167,
    123: 169,
    125: 172,
    124: 171,
    126: 173,
    127: 174,
    128: 176,
    129: 177,
    131: 180,
    130: 179,
    132: 181,
    134: 184,
    133: 183,
    135: 185,
    136: 186,
    137: 188,
    138: 189,
    140: 192,
    139: 191,
    141: 193,
    142: 194,
    144: 197,
    143: 196,
    145: 199,
    147: 202,
    146: 201,
    148: 204,
    149: 205,
    150: 207,
    152: 210,
    151: 209,
    153: 211,
    154: 212,
    155: 214,
    156: 215,
    158: 218,
    157: 217,
    159: 219,
    161: 222,
    160: 221,
    162: 223,
    163: 224,
    164: 226,
    165: 227,
    167: 230,
    166: 229,
    168: 231,
    170: 234,
    169: 233,
    171: 235,
    172: 236,
    173: 238,
    174: 239,
    176: 242,
    175: 241,
    177: 243,
    179: 246,
    178: 245,
    180: 247,
    181: 248,
    182: 250,
    183: 251,
    185: 254,
    184: 253,
    186: 255,
    187: 256,
    189: 259,
    188: 258,
    190: 261,
    191: 262,
    192: 264,
    194: 267,
    193: 266,
    195: 268,
    196: 269,
    197: 271,
    198: 272,
    200: 275,
    199: 274,
    201: 276,
    203: 279,
    202: 278,
    204: 280,
    205: 281,
    206: 283,
    207: 284,
    209: 287,
    208: 286,
    210: 288,
    212: 291,
    211: 290,
    213: 292,
    214: 293,
    215: 295,
    216: 296,
    218: 299,
    217: 298,
    219: 300,
    221: 303,
    220: 302,
    222: 304,
    223: 305,
    224: 307,
    225: 308,
    227: 311,
    226: 310,
    228: 312,
    229: 313,
    231: 316,
    230: 315,
    232: 318,
    233: 319,
    234: 321,
    236: 324,
    235: 323,
    237: 325,
    238: 326,
    239: 328,
    240: 329,
    242: 332,
    241: 331,
    243: 333,
    245: 336,
    244: 335,
    246: 337,
    247: 338,
    248: 340,
    249: 341,
    251: 344,
    250: 343,
    252: 345,
    254: 348,
    253: 347,
    255: 349,
    256: 350,
    257: 352,
    258: 353,
    260: 356,
    259: 355,
    261: 357,
    263: 360,
    262: 359,
    264: 361,
    265: 362,
    266: 364,
    267: 365,
    269: 368,
    268: 367,
    270: 369,
    272: 372,
    271: 371,
    273: 373,
    274: 374,
    275: 376,
    276: 377,
    278: 380,
    277: 379,
    279: 381,
    281: 384,
    280: 383,
    282: 385,
    283: 386,
    284: 388,
    285: 389,
    287: 392,
    286: 391,
    288: 393,
    290: 396,
    289: 395,
    291: 397,
    292: 398,
    293: 400,
    294: 401,
    296: 404,
    295: 403,
    297: 405,
    299: 408,
    298: 407,
    300: 409,
    301: 410,
    302: 412,
    303: 413,
    305: 416,
    304: 415,
    306: 417,
    308: 420,
    307: 419,
    309: 421,
    310: 422,
    311: 424,
    312: 425,
    314: 428,
    313: 427,
    315: 429,
    317: 432,
    316: 431,
    318: 433,
    319: 434,
    320: 436,
    321: 437,
    323: 440,
    322: 439,
    324: 441,
    325: 442,
    326: 443,
    328: 446,
    327: 445,
    329: 448,
    330: 449,
    331: 451,
    333: 454,
    332: 453,
    334: 455,
    335: 456,
    336: 458,
    337: 459,
    339: 462,
    338: 461,
    340: 463,
    342: 466,
    341: 465,
    343: 467,
    344: 468,
    345: 470,
    346: 471,
    348: 474,
    347: 473,
    349: 475,
    350: 476,
    352: 479,
    351: 478,
    353: 481,
    354: 482,
    355: 484,
    357: 487,
    356: 486,
    358: 488,
    359: 489,
    360: 491,
    361: 492,
    363: 495,
    362: 494,
    364: 496,
    365: 497,
    367: 500,
    366: 499,
    368: 502,
    369: 503,
    370: 505,
    372: 508,
    371: 507,
    373: 509,
    374: 510,
    375: 512,
    376: 513,
    378: 516,
    377: 515,
    379: 517,
    380: 518,
    381: 519,
    383: 522,
    382: 521,
    384: 524,
    385: 525,
    387: 528,
    386: 527,
    388: 530,
    389: 531,
    391: 534,
    390: 533,
    392: 536,
    393: 537,
    394: 539,
  ]
}
